package com.changcheng.mapper;

import com.changcheng.pojo.CarouselMap;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarouselMapMapper {
    List<CarouselMap> select(CarouselMap carouselMap);

    void addCarouselMap(CarouselMap carouselMap);

    boolean deleteCarouselMap(Integer id);
    //修改数据库id排序重新排序
    void deleteCarouselMap_chongpai(Integer id);
    //查询最大id
    Integer selectMaxID();
    //删除最后一条数据，以后添加数据从上一条数据自增1
    void updateAUTO_INCREMENT();

    void updateCarouselMapStatus(CarouselMap carouselMap);

}


